
#ifndef __PT_IPC_H__
#define __PT_IPC_H__

#include "sys_port.h"

#ifdef __cplusplus
extern "C" 
{
#endif

#define IPC_MSG_BASE          (0x01a0)
#define IPC_MSG_REBOOT        (0x01a0)
#define IPC_MSG_DEVLIST        (IPC_MSG_BASE+1)
#define IPC_MSG_SCENE          (IPC_MSG_BASE+2)
#define IPC_MSG_TOKEN_STAT     (IPC_MSG_BASE+3)
#define IPC_MSG_NET_STAT       (IPC_MSG_BASE+4)
#define IPC_MSG_RECNNT_STAT    (IPC_MSG_BASE+5)
#define IPC_MSG_UNBIND_STAT    (IPC_MSG_BASE+6)

#define IPC_MSG_DWLED_ONOFF    (IPC_MSG_BASE+7)
#define IPC_MSG_MC_CTL         (IPC_MSG_BASE+8)

#define IPC_MSG_SCR_OFF_TIME   (IPC_MSG_BASE+9)
#define IPC_MSG_SWLED_ONOFF    (IPC_MSG_BASE+10)

#define IPC_MSG_OC_CTL         (IPC_MSG_BASE+11)
#define IPC_MSG_JC_CTL         (IPC_MSG_BASE+12)

#define KH_DEV_STATE_GET       (IPC_MSG_BASE+13)
#define KH_DEV_CTRL            (IPC_MSG_BASE+14)
#define KH_DEV_PURI_CTRL       (IPC_MSG_BASE+15)

#define IPC_MSG_SCENE_EXEC     (IPC_MSG_BASE+16)

#define IPC_MSG_SSE_TO_UI      (IPC_MSG_BASE+17)
//*****************************************************

typedef struct _sse_info_t {
    char  dev_id[128];
    char* dev_data;
}sse_info_t;

typedef struct _pt_ipc_msg_t {
    int   type;
    char* buff;
    int   len;
}pt_ipc_msg_t;

//*****************************************************
int pt_ipc_init(void);
int pt_ipc_send_msg(int msg_type,char* msg_buff,int msg_len);
void kh_dev_sel(char* devid,char* devtype,char* name,char* subtype);
//*****************************************************
#ifdef __cplusplus
}
#endif


#endif
